package com.contract.pojo.converter;


import com.contract.pojo.bo.BizContractInfo;
import com.contract.pojo.bo.BizTemplate;
import com.contract.pojo.bo.SysRegister;
import com.contract.pojo.bo.SysUser;
import com.contract.pojo.input.ContractSaveInput;
import com.contract.pojo.input.RegisterSaveInput;
import com.contract.pojo.input.TemplateSaveInput;
import com.contract.pojo.output.RegisterOutput;
import com.contract.pojo.output.TemplateOutPut;
import com.contract.pojo.output.UserOutput;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Component;

/**
 * 实体转换converter
 *
 * @author liw
 * @date 2022/6/14 13:20
 */
@Mapper(componentModel = "spring")
@Component
public interface DtoConverter {

    SysRegister registerSaveVo2Bo(RegisterSaveInput from);

    RegisterOutput registerBo2Vo(SysRegister from);

    SysUser registerBo2UserBo(SysRegister from);

    UserOutput userBo2Vo(SysUser from);

    TemplateOutPut templateBo2Vo(BizTemplate from);

    BizTemplate templateVo2Bo(TemplateSaveInput from);

    BizContractInfo contractVo2Bo(ContractSaveInput from);

}